package com.frame.base.model;

/**
 * Created by Administrator on 2017/10/27.
 */

public class LoginModel {
    LoginListener loginListener;

    public LoginModel(LoginListener listener) {
        this.loginListener = listener;
    }

    public void login(String userName) {
        loginListener.success("i login success" + "   userName:" + userName);
    }

    public interface LoginListener {
        void success(String s);

        void fail();
    }
}
